/*
    24. Write a program in C to check whether a letter is uppercase or not.

    Test Data :
    Input a character : p

    Expected Output :

    The entered letter is not an UPPERCASE letter.
*/

#include <stdio.h>

int isupper2(char ch)
{
    if(ch >= 'A' && ch <= 'Z')
        return 1;
    else
        return 0;    
}

int main(void)
{
    char ch;
    printf("Input a character : ");
    scanf("%c", &ch);
    if(isupper2(ch)){
        printf("The entered letter is an UPPERCASE letter.");
    }else{
        printf("The entered letter is not an UPPERCASE letter.");
    }

    return 0;
}